﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using FazaDemo.BL.Services;
using FazaDemo.BL.Domain;

namespace FazaDemo.WebSiteMvc.Controllers.Api
{
    public class StreetController : ApiController
    {

        private readonly IDataServicePoint<Street> _point;

        public StreetController()
        {
            _point = new DataServicePoint<Street>();
        }

        // GET api/<controller>
        public IEnumerable<Street> Get()
        {
            return _point.Get();
        }

        // GET api/<controller>/5
        public string Get(int id)
        {
            return "value";
        }

        // POST api/<controller>
        public void Post([FromBody]string value)
        {
        }

        // PUT api/<controller>/5
        public void Put(int id, [FromBody]string value)
        {
        }

        // DELETE api/<controller>/5
        public void Delete(int id)
        {
        }
    }
}